package poker;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/** KLASA Deck - TALIA. */

	
	public class DeckGui {
		
 
		// LISTA KART. 
  	private ArrayList<CardGui> cards;

  	/** KONSTRUKTOR KLASY Deck.  **/
  	public DeckGui(Deck deck) {
  	int i,j;
    cards = new ArrayList<CardGui>();
	for (i = 0; i < 4; i++)	{
		for(j = 0 ; j < 13; j++)
		cards.add(new CardGui(i,j));
	}
  }
  /** @return KARTA Z WIERZCHU, KTORA PO POBRANIU JEST USUNIETA. */
  public CardGui drawFromDeck() {
	  return cards.remove(0);
  }
  
  /** @return i-ta KARTA. */
  public CardGui getCard(int i) {
    return cards.get(i);
  }

  /** @return POZOSTALA W TALII ILOSC KART. */
  public int getTotalCards() {
    return cards.size();
  }
 
 
}